<?php
/**
 * Created by PhpStorm.
 * User: lgm
 * Date: 2018/9/3
 * Time: 19:35
 */
namespace app\admin\controller;

class Activity extends MyController
{
    //活动列表
    public function index()
    {
        $aid = input('aid');
        $name =db('act_category')->where('act_id',$aid)->value('act_title');
        $activity = db('activity')
            ->where('act_id',$aid)
            ->order('aid','DESC')
            ->select();
        $this->assign([
            'name' =>$name,
            'activity'=> $activity
        ]);

        return view();
    }
    //添加活动
    public function add()
    {

        return view();
    }
    //编辑活动
    public function edit()
    {
        return view();
    }
    //删除活动
    public function del()
    {

    }
}
